package com.cha.chaApp.babyphysical.param;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDate;


@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("baby_physical_indicators_table")
public class BabyPhysicalIndicatorsParam {
    /**
     * 宝宝id
     */
    @ApiModelProperty(value = "宝宝id", example = "1")
    private Long babyId;

    /**
     * 身高
     */
    @ApiModelProperty(value = "身高", example = "11")
    private BigDecimal height;

    /**
     * 体重
     */
    @ApiModelProperty(value = "体重", example = "11")
    private BigDecimal weight;

    /**
     * 头围
     */
    @ApiModelProperty(value = "头围", example = "11")
    private BigDecimal headAround;

    /**
     * 测量时间，格式为到年月日
     */
    @ApiModelProperty(value = "测量时间(年月日)", example = "2024-11-11")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate measurementTime;
}